<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>menu</title>
    <link rel="stylesheet" href="../../layui-v2.8.0/css/layui.css" media="all">
    <link rel="stylesheet" href="../../layui-v2.8.0/css/public.css" media="all">
    <link rel="stylesheet" href="../../css/menu.css" >
    <link rel="stylesheet" href="../../layui-v2.8.0/font-awesome-4.7.0/css/font-awesome.css" media="all">
    <script type="application/javascript" src="../../js/jquery-v3.6.3.min.js"></script>
    <script type="application/javascript" src="../../html-js/common.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../html-js/header.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../js/jquery.cookie.min.js"></script>
    <script type="application/javascript" src="../../layui-v2.8.0/layui.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../layui-v2.8.0/modules/all.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../layui-v2.8.0/lay-config.js?v=2.0.0" charset="utf-8"></script>
    <script type="application/javascript" src="../../html-js/system/menu.js" charset="utf-8"></script>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <blockquote class="layui-elem-quote">
            菜单、按钮资源<br>
        </blockquote>
        <div>
            <div class="layui-btn-group">
                <button class="layui-btn" id="btn-expand">全部展开</button>
                <button class="layui-btn layui-btn-normal" id="btn-fold">全部折叠</button>
                <button class="layui-btn layui-btn-warm" id="btn-refresh" style="display: none;">刷新</button>
                <button class="layui-btn " id="btn-shouye">修改首页地址</button>
            </div>
            <table id="munu-table" class="layui-table" lay-filter="munu-table"></table>
        </div>
    </div>
</div>
<!-- 操作列 -->
<script type="text/html" id="auth-state">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit" style="display: none;">修改</a>
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="add" style="display: none;">新增</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" style="display: none;">删除</a>
</script>
    <div class="layuimini-main" id="menu-add-update" style="display: none;">
        <form class="layui-form layui-form-pane" id="menu-add-update-form" action="" lay-filter="menu_form">
            <input id="parentId" name="parentId" style="display: none;">
            <input id="authorityId" name="authorityId" style="display: none;">
            <div class="layui-form-item" id="parentName_div">
                <label class="layui-form-label">上级节点</label>
                <div class="layui-input-block">
                    <input type="text" name="parentName" autocomplete="off" placeholder="上级节点" class="layui-input" disabled="disabled">
                </div>
            </div>
            <div class="layui-form-item" id="parentMenuCode_div">
                <label class="layui-form-label">上级节点</label>
                <div class="layui-input-block">
                    <input type="text" name="parentMenuCode" autocomplete="off" placeholder="上级节点编号" class="layui-input" disabled="disabled">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">权限名称</label>
                <div class="layui-input-block">
                    <input type="text" name="authorityName" id="authorityName" lay-verify="required" autocomplete="off" placeholder="请输入权限名称" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">权限编码</label>
                <div class="layui-input-block">
                    <input type="text" name="menuCode" id="menuCode" lay-verify="required"  placeholder="请输入权限编码" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">图标</label>
                <div class="layui-input-block">
                    <input type="text" name="menuIcon" id="menuIcon" lay-filter="menuIcon"  placeholder="请输入图标" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">单行选择框</label>
                <div class="layui-input-block">
                    <select name="isMenu" lay-filter="aihao" >
                        <option value="1" selected="">菜单</option>
                        <option value="2" selected="">按钮</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">权限按钮</label>
                <div class="layui-input-block">
                    <input type="text" name="authority" id="authority" lay-verify="required" placeholder="请输入权限按钮标志" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">菜单url</label>
                <div class="layui-input-block">
                    <input type="text" name="menuUrl"  placeholder="请输入菜单url" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">排序</label>
                <div class="layui-input-block">
                    <input type="text" name="orderNumber"  placeholder="排序" lay-verify="|number" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">接口权限</label>
                <div class="layui-input-block">
                    <input type="text" name="auth" id="auth"  placeholder="请输入接口权限" autocomplete="off" class="layui-input">
                </div>
            </div>

        </form>
    </div>

    <form class="layui-form" id="menu-shouye-update-add-from" action="" style="display: none; padding: 1rem;">
        <div class="layui-form-item">
            <label class="layui-form-label">首页名称</label>
            <div class="layui-input-block">
                <input type="text" name="shouyeTitle" id="shouyeTitle" required  lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">首页地址</label>
            <div class="layui-input-block">
                <input type="text" name="shouyeHref" id="shouyeHref" required  lay-verify="required" placeholder="请输入地址" autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>

</body>
</html>